/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export const AccountErrCode = {
    "ERR_JS_SUCCESS" : 0,
    "ERR_JS_PERMISSION_DENIED" : 201,
    "ERR_JS_PARAMETER_ERROR" : 401,
    "ERR_JS_CAPABILITY_NOT_SUPPORTED" : 801,
    "ERR_JS_SYSTEM_SERVICE_EXCEPTION" : 12300001,
    "ERR_JS_INVALID_PARAMETER" : 12300002,
    "ERR_JS_ACCOUNT_NOT_FOUND" : 12300003,
    "ERR_JS_ACCOUNT_ALREADY_EXIST" : 12300004,
    "ERR_JS_MULTI_USER_NOT_SUPPORT" : 12300005,
    "ERR_JS_ACCOUNT_TYPE_NOT_SUPPORT" : 12300006,
    "ERR_JS_ACCOUNT_NUMBER_REACH_LIMIT" : 12300007,
    "ERR_JS_ACCOUNT_RESTRICTED" : 12300008,
    "ERR_JS_ACCOUNT_ALREADY_ACTIVATED" : 12300009,
    "ERR_JS_ACCOUNT_SERVICE_BUSY" : 12300010,
    "ERR_JS_LISTENER_ALREADY_REGISTERED" : 12300011,
    "ERR_JS_LISTENER_NOT_REGISTERED" : 12300012,

    "ERR_JS_AUTH_CREDENTIAL_WRONG_ERROR" : 12300101,
    "ERR_JS_CREDENTIAL_NOT_EXIST" : 12300102,
    "ERR_JS_CREDENTIAL_INPUTER_ALREADY_EXIST" : 12300103,
    "ERR_JS_CREDENTIAL_INPUTER_NOT_EXIST" : 12300104,
    "ERR_JS_TRUST_LEVEL_NOT_SUPPORTED" : 12300105,
    "ERR_JS_AUTH_TYPE_NOT_SUPPORTED" : 12300106,
    "ERR_JS_AUTH_TYPE_NOT_FOUND" : 12300107,
    "ERR_JS_SESSION_NOT_EXIST" : 12300108,
    "ERR_JS_AUTH_CANCELLED" : 12300109,
    "ERR_JS_AUTH_SERVICE_LOCKED" : 12300110,
    "ERR_JS_AUTH_TIMEOUT" : 12300111,
    "ERR_JS_AUTH_SERVICE_BUSY" : 12300112,
    "ERR_JS_ACCOUNT_AUTHENTICATOR_NOT_EXIST" : 12300113,
    "ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION" : 12300114,
    
    "ERR_JS_INVALID_CONTEXT_ID" : 12300002,

    "ERR_JS_APPLICATION_NOT_EXIST" : 12400001,
    "ERR_JS_CUSTOM_DATA_NOT_FOUND" : 12400002,
    "ERR_JS_CUSTOM_DATA_NUMBER_REACH_LIMIT" : 12400003,
    "ERR_JS_TOKEN_NUMBER_REACH_LIMIT" : 12400004,
    "ERR_JS_AUTHORIZATION_LIST_TOO_LARGE" : 12400005
}
